package com.lej.my

import com.lej.core.base.BaseModel
import com.lej.core.base.BaseViewModel
import com.lej.dataservice.club.http.request
import com.lej.my.http.myApiService
import kotlinx.coroutines.flow.MutableStateFlow

/**
 *  author: cjq
 *  date  : 2022/6/9 0009
 *  desc  :
 */
class MyViewModel : BaseViewModel<BaseModel>() {
    val selectTab = MutableStateFlow(1)

    fun initUSerInfo() = request { myApiService.getUserInfo() }

    fun getUnreadMsg() = request{myApiService.getUnReadMsg()}

    fun sendHadRead() = request { myApiService.sendHasRead() }
}